package com.tjzx.entity;

/**
 * StCourseInfoId entity. @author MyEclipse Persistence Tools
 */

public class StCourseInfoId implements java.io.Serializable {

	// Fields

	private Integer stCourseId;
	private String stCourseName;
	private Boolean stIsDeleted;

	// Constructors

	/** default constructor */
	public StCourseInfoId() {
	}

	/** minimal constructor */
	public StCourseInfoId(Integer stCourseId, String stCourseName) {
		this.stCourseId = stCourseId;
		this.stCourseName = stCourseName;
	}

	/** full constructor */
	public StCourseInfoId(Integer stCourseId, String stCourseName,
			Boolean stIsDeleted) {
		this.stCourseId = stCourseId;
		this.stCourseName = stCourseName;
		this.stIsDeleted = stIsDeleted;
	}

	// Property accessors

	public Integer getStCourseId() {
		return this.stCourseId;
	}

	public void setStCourseId(Integer stCourseId) {
		this.stCourseId = stCourseId;
	}

	public String getStCourseName() {
		return this.stCourseName;
	}

	public void setStCourseName(String stCourseName) {
		this.stCourseName = stCourseName;
	}

	public Boolean getStIsDeleted() {
		return this.stIsDeleted;
	}

	public void setStIsDeleted(Boolean stIsDeleted) {
		this.stIsDeleted = stIsDeleted;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof StCourseInfoId))
			return false;
		StCourseInfoId castOther = (StCourseInfoId) other;

		return ((this.getStCourseId() == castOther.getStCourseId()) || (this
				.getStCourseId() != null
				&& castOther.getStCourseId() != null && this.getStCourseId()
				.equals(castOther.getStCourseId())))
				&& ((this.getStCourseName() == castOther.getStCourseName()) || (this
						.getStCourseName() != null
						&& castOther.getStCourseName() != null && this
						.getStCourseName().equals(castOther.getStCourseName())))
				&& ((this.getStIsDeleted() == castOther.getStIsDeleted()) || (this
						.getStIsDeleted() != null
						&& castOther.getStIsDeleted() != null && this
						.getStIsDeleted().equals(castOther.getStIsDeleted())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getStCourseId() == null ? 0 : this.getStCourseId()
						.hashCode());
		result = 37
				* result
				+ (getStCourseName() == null ? 0 : this.getStCourseName()
						.hashCode());
		result = 37
				* result
				+ (getStIsDeleted() == null ? 0 : this.getStIsDeleted()
						.hashCode());
		return result;
	}

}